# 2023/2/2  16:56
import requests

from config import BASE_URL


class LoginApi(object):

    url = BASE_URL +"/api/sys/login"

    @classmethod
    def login(cls,body):
        resp=requests.post(cls.url,json=body)
        return resp

if __name__ == '__main__':
    resp=LoginApi.login({"mobile":"13800000002","password":"123456"})
    print(resp.json())
